
local newt = reload("newt")
---消息结构转换成lua-table
local function localf(t)
    local ret = newt()
    for k, v in pairs(t.hash) do
        local gk = tonumber(k) or k
        if v.name == "hash" then
            ret[gk] = localf(v)
        else
            ret[gk] = v[v.name]
        end
    end
    return ret
end

return localf
